package com.wing.ext.domain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;


@Entity
@Table(name = "ext_products")
public class  Products {

  	@Id
  	@Column(name = "id")
  	private String id;
  	@Column(name = "groupid")
  	private String groupid;
  	@Column(name = "site_id")
  	private String site_id;
  	@Column(name = "product_name")
  	private String product_name;
  	@Column(name = "product_code")
  	private String product_code;
  	@Column(name = "keyword")
  	private String keyword;
  	@Column(name = "introduction")
  	private String introduction;
  	@Column(name = "inventory")
  	private int inventory;
  	@Column(name = "promotion")
  	private String promotion;
  	@Column(name = "price")
  	private int price;
  	@Column(name = "picpath")
  	private String picpath;
  	@Column(name = "small_picpath")
  	private String small_picpath;
  	@Column(name = "create_user")
  	private String create_user;
  	@Column(name = "valid_flag")
  	private int valid_flag;
  	

  	public void  setId(String id){
  		this.id = id;
  	}
	public String getId(){
  		return this. id; 
  	}
  	public void  setGroupid(String groupid){
  		this.groupid = groupid;
  	}
	public String getGroupid(){
  		return this. groupid; 
  	}
  	public void  setSite_id(String site_id){
  		this.site_id = site_id;
  	}
	public String getSite_id(){
  		return this. site_id; 
  	}
  	public void  setProduct_name(String product_name){
  		this.product_name = product_name;
  	}
	public String getProduct_name(){
  		return this. product_name; 
  	}
  	public void  setProduct_code(String product_code){
  		this.product_code = product_code;
  	}
	public String getProduct_code(){
  		return this. product_code; 
  	}
  	public void  setKeyword(String keyword){
  		this.keyword = keyword;
  	}
	public String getKeyword(){
  		return this. keyword; 
  	}
  	public void  setIntroduction(String introduction){
  		this.introduction = introduction;
  	}
	public String getIntroduction(){
  		return this. introduction; 
  	}
  	public void  setInventory(int inventory){
  		this.inventory = inventory;
  	}
	public int getInventory(){
  		return this. inventory; 
  	}
  	public void  setPromotion(String promotion){
  		this.promotion = promotion;
  	}
	public String getPromotion(){
  		return this. promotion; 
  	}
  	public void  setPrice(int price){
  		this.price = price;
  	}
	public int getPrice(){
  		return this. price; 
  	}
  	public void  setPicpath(String picpath){
  		this.picpath = picpath;
  	}
	public String getPicpath(){
  		return this. picpath; 
  	}
  	public void  setCreate_user(String create_user){
  		this.create_user = create_user;
  	}
	public String getCreate_user(){
  		return this. create_user; 
  	}
  	public void  setValid_flag(int valid_flag){
  		this.valid_flag = valid_flag;
  	}
	public int getValid_flag(){
  		return this. valid_flag; 
  	}
	public String getSmall_picpath() {
		return small_picpath;
	}
	public void setSmall_picpath(String small_picpath) {
		this.small_picpath = small_picpath;
		if(small_picpath!=null)
		this.picpath=small_picpath.replace("p_small_", "p_");
	}

}
